package com.mls.fivedistrict.pojo;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * <p>
 * </p>
 *
 * @author Five Team
 * @since 2018-05-16
 */
@Data
@Accessors(chain = true)
@TableName("t_logistics_company")
public class LogisticsCompany extends Model<LogisticsCompany> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 物流公司名称
     */
    @NotBlank(message = "物流公司名称不能为空")
    private String name;
    private Date createDate;
    private Date updateDate;
    /**
     * 描述
     */
    private String description;
    private String createBy;
    @TableLogic
    private Boolean isDelete;
    /**
     * 物流公司表
     */
    private String isEnable;

    public Boolean getDelete() {
        return isDelete;
    }

    public void setDelete(Boolean delete) {
        isDelete = delete;
    }


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
